lib: Ensure we use _GNU_SOURCE in enum templates
authorColin Walters <walters@verbum.org>
Tue, 6 Dec 2016 16:30:19 +0000 (11:30 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 7 Dec 2016 23:00:58 +0000 (23:00 +0000)
commit099576ee4a8f5f23e17def823c44c5de31b14d5d
tree299eb45af682fdda2b0270aaec9bc082c4a2c5e9
parenta2d627352de9551e7b0dd93c2a7bc4dcb57b433b
lib: Ensure we use _GNU_SOURCE in enum templates

Due to the way glib-mkenums runs the preprocessor itself, it
doesn't pick up the `AC_USE_SYSTEM_EXTENSIONS()` that we have in
`configure.ac`.

This blew up in an obscure way when I later wanted to `#include
"libglnx.h"` in one of the headers, since it needs the `basename()`
from `string.h` which is only available with `_GNU_SOURCE`.

Closes: #616
Approved by: jlebon
src/libostree/ostree-enumtypes.c.template